﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class BuoiHocBLL
    {
        private BuoiHocDAL dal;

        public BuoiHocBLL()
        {
            try
            {
                dal = new BuoiHocDAL();
            }
            catch { throw; }
        }

        public List<BuoiHocEntity> getAll()
        {
            try
            {
                return dal.getAll();
            }
            catch { throw; }
        }

        public BuoiHocEntity getById(int _id)
        {
            try
            {
                return dal.getById(_id);
            }
            catch { throw; }
        }

        public List<BuoiHocEntity> getByKhoaHocId(int _id)
        {
            try
            {
                return dal.getByKhoaHocId(_id);
            }
            catch { throw; }
        }

        public int addBuoiHoc(BuoiHocEntity _obj)
        {
            try
            {
                return dal.addBuoiHoc(_obj);
            }
            catch { throw; }
        }

        public int deleteBuoiHoc(int _id)
        {
            try
            {
                return dal.deleteBuoiHoc(_id);
            }
            catch { throw; }
        }

        public int updateBuoiHoc(BuoiHocEntity _obj)
        {
            try
            {
                return dal.updateBuoiHoc(_obj);
            }
            catch { throw; }
        }
    }
}
